Skip to main content
Version: 2.0

Dynamic Text Template

Index of dynamic variable passed in parameter attributes should be in the same sequence as in whitelisted template.

Example:

Payload

{
"recipient_type": "individual",
"to": "xxxxx",
"type": "template",
"template": {
"name": "welcome_test",
"language": {
"policy": "deterministic",
"code": "en"
},
"components": [
{
"type": "body",
"parameters": [
{
"type": "text",
"text": "Hi"
},
{
"type": "text",
"text": "10000"
}
]
}
]
},
"metadata": {
"messageId": "xxxxx",
"transactionId": "xxxxx",
"callbackDlrUrl": "http://xxx.com"
}
}

Note: 'type' field will have the value as 'template' and 'templateID' field refers to template name which should be passed in small characters only. Also, the value in 'callbackDlrUrl' will be honoured only if default DLR URL is configured for you business.

Note: Calback URL is a optional paramter . Please use when you want to change the default URL(configured through smartta). It will only chnage the domain name othere paratemters will be same as configurated in smartta.